package system.model;

import system.common.Constants;
import collector.core.util.StringUtil;

/**
 * <pre>
 * Class : system.model.DB10_iDeskDto / DB10_iDeskDto.java
 * 	Define Class Object : 
 * <br>
 * </pre>
 * @author hwanLee / apexcns,Inc.
 * @version 1.0
 * @see javadoc
 * @since 2012. 9. 25.
 */
public class DB10_iDeskDto {
	private String userid;
	private String userip;
	private String targetip;
	private int isblocked;
	private String regdate;
	
	/** <pre>
	 * Method : DB10_iDeskDto.getUserid()
	 * 	to get userid
	 * <br> 
	 * @return the userid : type of String
	 * </pre>
	 */
	public String getUserid() {
		return userid;
	}
	/** <pre>
	 * Method : DB10_iDeskDto.setUserid()
	 * 	to set userid
	 * <br> 
	 * @return the userid : type of String
	 * </pre>
	 */
	public void setUserid(String userid) {
		this.userid = userid;
	}
	/** <pre>
	 * Method : DB10_iDeskDto.getUserip()
	 * 	to get userip
	 * <br> 
	 * @return the userip : type of String
	 * </pre>
	 */
	public String getUserip() {
		return userip;
	}
	/** <pre>
	 * Method : DB10_iDeskDto.setUserip()
	 * 	to set userip
	 * <br> 
	 * @return the userip : type of String
	 * </pre>
	 */
	public void setUserip(String userip) {
		this.userip = userip;
	}
	/** <pre>
	 * Method : DB10_iDeskDto.getTargetip()
	 * 	to get targetip
	 * <br> 
	 * @return the targetip : type of String
	 * </pre>
	 */
	public String getTargetip() {
		return targetip;
	}
	/** <pre>
	 * Method : DB10_iDeskDto.setTargetip()
	 * 	to set targetip
	 * <br> 
	 * @return the targetip : type of String
	 * </pre>
	 */
	public void setTargetip(String targetip) {
		this.targetip = targetip;
	}
	/** <pre>
	 * Method : DB10_iDeskDto.getIsblocked()
	 * 	to get isblocked
	 * <br> 
	 * @return the isblocked : type of int
	 * </pre>
	 */
	public int getIsblocked() {
		return isblocked;
	}
	/** <pre>
	 * Method : DB10_iDeskDto.setIsblocked()
	 * 	to set isblocked
	 * <br> 
	 * @return the isblocked : type of int
	 * </pre>
	 */
	public void setIsblocked(int isblocked) {
		this.isblocked = isblocked;
	}
	/** <pre>
	 * Method : DB10_iDeskDto.getRegdate()
	 * 	to get regdate
	 * <br> 
	 * @return the regdate : type of String
	 * </pre>
	 */
	public String getRegdate() {
		return regdate;
	}
	/** <pre>
	 * Method : DB10_iDeskDto.setRegdate()
	 * 	to set regdate
	 * <br> 
	 * @return the regdate : type of String
	 * </pre>
	 */
	public void setRegdate(String regdate) {
		this.regdate = regdate;
	}

	@Override
	public String toString() {
	    String delimiter = Constants.delimiter;
	    
	    String res = StringUtil.rTrim(userid) + delimiter;
	    res += StringUtil.rTrim(userip) + delimiter;
	    res += StringUtil.rTrim(targetip) + delimiter;
	    res += isblocked + delimiter;
	    res += StringUtil.rTrim(regdate) + "\n";
	    
	    return res;
	}
}